import Ax from './api';

export default {
  generalProtocolAdd: (param = {}) => Ax.post(`/generalProtocol/add`, {...param}),
  generalProtocolEdit: (param = {}) => Ax.post(`/generalProtocol/edit`, param),
  generalProtocolDelete: (query = {}) => Ax.delete(`/generalProtocol/delete?_id=${query._id}`),
  generalProtocolList: (param = {}) => Ax.post(`/generalProtocol/list`, param),
  generalProtocolCommandRelated: (param = {}) => Ax.post(`/generalProtocol/command/related`, param),
  generalProtocolCommandList: (param = {}) => Ax.post(`/generalProtocol/command/list`, param),
  generalProtocolRelated: (param = {}) => Ax.post(`/protocol/relate`, param),//设备协议关联通用协议组件
  generalProtocolCommandDetail: (query = {}) => Ax.get(`/generalProtocol/command/detail?_id=${query._id}`),
};
